package com.enterpriseDigitalPlatform.util;

import java.util.regex.Pattern;

public class TelUtil {
    private TelUtil() {
    }

    private static final Pattern PATTERN = Pattern.compile("^1[3456789]\\d{9}$");

    // todo 手机号校验 true 表示错误
    public static Boolean telValidator(String tel) {
        return !PATTERN.matcher(tel).matches();
    }

}
